<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">
	<span class="color_red">*</span>科技企业孵化器现有工作人员一览表
</div>
<table  id="tblMileStones" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead >
		<tr style="organization_finances/financeborder:1px solid #B7D1E6">
			<th class="TblHead" align="center"  width="5%">选择</th>
			<th class="TblHead" align="center"  width="5%">序号</th>
			<th class="TblHead" align="center"  width="10%">姓名</th>
			<th class="TblHead" align="center"  width="10%">性别</th> 
			<th class="TblHead" align="center"  width="10%">年龄</th> 
			<th class="TblHead" align="center"  width="15%">职务</th>
			<th class="TblHead" align="center"  width="20%">职称</th>
			<th class="TblHead" align="center" width="13%">学历</th>
			<th class="TblHead" align="center" width="12%">专业领域</th>						
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display:none">
			<td align="center">
				<input type="radio" class="radiobutton" name="selMileStones" >
			</td>
			<td align="center">
				<span name="milestones|milestone[0]@seq_no" >[index]</span> 
			</td>
			<td align="center" valign="top">
				<input name="milestones|milestone[0]|content1" label="姓名" value="" class="required input_text "  maxlength="100" style="width:80%" />
			</td>
			
			<td align="center">
				<cpt:select id="sex[index]" key="sex"  name="sex" style="width:80%" onChange="initControlValue(this.id);"></cpt:select>
		      <input type="hidden" name="milestones|milestone[0]|sex_value" class="required" label="性别" />
		      <input type="hidden" name="milestones|milestone[0]|sex_name" value=""/>
			</td>
			<td align="center">
				<input name="milestones|milestone[0]|content3" label="年龄" value="" class="required input_text " onfocus="InitInput.setNumber(this,2,0,0)"  style="width:80%;" />
			</td>
			<td align="center" valign="top">
			<input name="milestones|milestone[0]|content4" label="职务" value="" class=" required input_text "  maxlength="20" style="width:80%" />
			</td>
			<td align="center">
			<cpt:tree id="prof_title_[index]" key="prof_title" cacheable="false" readonly="true" label="职称"  className="hn_iuput_kuang required selectWidth3" value="" name="prof_title"  showPattern="all" shieldPattern="0" onClick="initTreeValue2" width="70%" />
			<input type="hidden" name="milestones|milestone[0]|prof_title_value" value="" /> 
			<input type="hidden" name="milestones|milestone[0]|prof_title_name" value="" />
			</td>
			<td align="center">						
				<cpt:select id="educate[index]"  name="educate" key="educate" onChange="initControlValue(this.id)"></cpt:select>
				<input type="hidden" name="milestones|milestone[0]|educate_value" value="" label="学历"  class="required"/>
				<input type="hidden" name="milestones|milestone[0]|educate_name" value="" label="学历"  />
			</td>
			<td align="center" valign="top">
				<input name="milestones|milestone[0]|content5" label="专业领域" value="" class="required input_text "  maxlength="50" style="width:80%" />
			</td>
		</tr>
		<c:set value="0" var="index" scope="page"/>
		<x:forEach select="$xmlData/data/milestones/milestone" var="milestone">
		<c:choose>
			<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr >
			<td align="center">
				<input type="radio" class="radiobutton" name="selMileStones" >
			</td>
			<td align="center">
				<span name="milestones/milestone[${flag}${index}]@seq_no" ><x:out select="$milestone/@seq_no"/></span> 
			</td>
			<td align="center" valign="top">
				<input value="<x:out select="$milestone/content1"/>" label="姓名" name="milestones/milestone[${flag}${index}]/content1" maxlength="100" class="required"  style="width:80%"  /> 
			</td>
			<td align="center">
				<c:set var="sex"><x:out select="$milestone/sex_value" /></c:set>
			   <cpt:select id="sex${flag}${index}"   name="sex"   key="sex" style="width: 80%;" value="${sex }" onChange="initControlValue(this.id);"  label="性别"></cpt:select>
		      <input type="hidden" name="milestones/milestone[${flag}${index}]/sex_value"  class="required" value="<x:out select="$milestone/sex_value" />" label="性别"/>
			   <input type="hidden" name="milestones/milestone[${flag}${index}]/sex_name" value="<x:out select="$milestone/sex_name" />"  label="性别"/>
			</td>
			<td align="center">
				<input value="<x:out select="$milestone/content3"/>" label="年龄" name="milestones/milestone[${flag}${index}]/content3" onfocus="InitInput.setNumber(this,2,0,0)"  class="required"  style="width:80%;"  /> 
			</td>
			<td align="center" valign="top">
				<input value="<x:out select="$milestone/content4"/>" label="职务" name="milestones/milestone[${flag}${index}]/content4" maxlength="20" class="required"  style="width:80%"  /> 
			</td>
			<td align="center">
				<c:set var="prof_title">{'id':'<x:out select="$milestone/prof_title_value" />','name':'<x:out select="$milestone/prof_title_name" />'}</c:set>
				<cpt:tree id="prof_title_${index}" key="prof_title" cacheable="false" readonly="true" value="${prof_title}" className="hn_iuput_kuang required selectWidth3" name="prof_title"  showPattern="all" shieldPattern="0" onClick="initTreeValue2"   label="职称" width="70%" />	
				<input type="hidden" name="milestones/milestone[${flag}${index}]/prof_title_value" value="<x:out select="$milestone/prof_title_value" />" /> 
				<input type="hidden" name="milestones/milestone[${flag}${index}]/prof_title_name" value="<x:out select="$milestone/prof_title_name" />" /> 
			</td>
			<td align="center">						
			    <c:set var="educate_value"><x:out select="$milestone/educate_value" /></c:set>
				<cpt:select id="educate${index}" name="educate" value="${educate_value }" key="educate" onChange="initControlValue(this.id)" ></cpt:select>
				<input type="hidden" name="milestones/milestone[${flag}${index}]/educate_value" value="<x:out select="$milestone/educate_value" />" label="学历"  class="required"/>
				<input type="hidden" name="milestones/milestone[${flag}${index}]/educate_name" label="学历" value="<x:out select="$milestone/educate_name" />" />
			</td>
			<td align="center" valign="top">
				<input value="<x:out select="$milestone/content5"/>" label="专业领域" name="milestones/milestone[${flag}${index}]/content5" maxlength="50" class="required"  style="width:80%"  /> 
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page"/>
		</x:forEach>
		<script type="text/javascript">
			showAllDateTag("tblMileStones");
		</script>
	</tbody>
</table>
<br/>

<table width="98%" align="center">
	<tr >
	<td>
	<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblMileStones',99,'科技企业孵化器现有工作人员一览表最多只能填写99条')){addNewRow('tblMileStones');showDateTag('tblMileStones');}try{top.resizeFrame();}catch(e){};">
	<!--
	<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblMileStones',5,'项目进度信息最多只能填写5条')){addNewRow('tblMileStones');}showDateTag('tblMileStones');try{top.resizeFrame();}catch(e){};">
    -->
	<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblMileStones','selMileStones')">
	<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblMileStones','selMileStones')">
	<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblMileStones','科技企业孵化器现有工作人员一览表')">
	</td>
	</tr>
</table>
<div class="t_bar">
	<span class="color_red">*</span>科技企业孵化器现有孵化场地情况表
</div>
<table  id="tblAttendOrg" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead >
		<tr>
			<th class="TblHead" align="center" rowspan="2" width="5%">选择</th>
			<th class="TblHead" align="center" rowspan="2" width="5%">序号</th>
			<th class="TblHead" align="center" rowspan="2" width="10%">楼宇名称</th>
			<th class="TblHead" align="center" rowspan="2" width="20%">详细地址</th> 
			<th class="TblHead" align="center" rowspan="2" width="10%">启用时间</th> 
			<th class="TblHead" align="center" rowspan="2" width="10%">面积<br/>(平方米)</th>
			<th class="TblHead" align="center" colspan="4" width="20%">其中 (平方米)</th>
			<th class="TblHead" align="center" colspan="4" width="20%">产权情况（平方米）</th>						
		</tr>
		<tr>
			<th class="TblHead" align="center" width="5%">企业用</th>
			<th class="TblHead" align="center" width="5%">服务用</th>
			<th class="TblHead" align="center" width="5%">办公用</th>
			<th class="TblHead" align="center" width="5%">其它</th>
			<th class="TblHead" align="center" width="5%">自由<br/>产权</th>
			<th class="TblHead" align="center" width="5%">受托<br/>管理</th>
			<th class="TblHead" align="center" width="5%">租赁</th>
			<th class="TblHead" align="center" width="5%">其它</th>
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display:none">
			<td align="center">
				<input type="radio" class="radiobutton" name="selAttendOrg" >
			</td>
			<td align="center">
				<span name="milestones|milestone1[0]@seq_no" >[index]</span> 
			</td>
			<td align="center" valign="top">
				<span name="milestones|milestone1[0]|content1" label="楼宇名称" ></span>
			</td>
			<td align="center" valign="top">
				<span name="milestones|milestone1[0]|content2" label="详细地址" ></span>
			</td>
			<td align="center" nowrap="nowrap">
				<span name="milestones|milestone1[0]|begain_date" label="启用时间" ></span>
			</td>
			<td align="center">
				<span name="milestones|milestone1[0]|content3" label="面积" ></span>
			</td>
			<td align="center">
				<span name="milestones|milestone1[0]|content4" label="其中 (平方米)-->企业用" ></span>
			</td>
			<td align="center">
				<span name="milestones|milestone1[0]|content5" label="其中 (平方米)-->服务用" ></span>
			</td>
			<td align="center">
				<span name="milestones|milestone1[0]|content6" label="其中 (平方米)-->办公用" ></span>
			</td>
			<td align="center">
				<span name="milestones|milestone1[0]|content7" label="其中 (平方米)-->其它" ></span>
			</td>
			<td align="center">
				<span name="milestones|milestone1[0]|content8" label="产权情况（平方米）-->自由产权" ></span>
			</td>
			<td align="center">
				<span name="milestones|milestone1[0]|content9" label="产权情况（平方米）-->受托管理" ></span>
			</td>
			<td align="center">
				<span name="milestones|milestone1[0]|content10" label="产权情况（平方米）-->租赁" ></span>
			</td>
			<td align="center">
				<span name="milestones|milestone1[0]|content11" label="产权情况（平方米）-->其它" ></span>
			</td>
		</tr>
		<c:set value="0" var="index" scope="page"/>
		<x:forEach select="$xmlData/data/milestones/milestone1" var="milestone1">
		
		<c:choose>
			<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr >
			<td align="center">
				<input type="radio" class="radiobutton" name="selAttendOrg" >
			</td>
			<td align="center">
				<span name="milestones/milestone1[${flag}${index}]@seq_no" ><x:out select="$milestone1/@seq_no"/></span> 
			</td>
			<td align="center" valign="top">
				<span label="楼宇名称" name="milestones/milestone1[${flag}${index}]/content1"><x:out select="$milestone1/content1"/></span>
			</td>
			<td align="center" valign="top">
				<span label="详细地址" name="milestones/milestone1[${flag}${index}]/content2"><x:out select="$milestone1/content2"/></span>
			</td>
			<td align="center">
				<span  label="启用时间"  name="milestones/milestone1[${flag}${index}]/begain_date" ><x:out select="$milestone1/begain_date" /></span>
			</td>
			<td align="center">
				<span label="面积" name="milestones/milestone1[${flag}${index}]/content3" ><x:out select="$milestone1/content3"/></span>
			</td>
			<td align="center">
				<span label="其中 (平方米)-->企业用" name="milestones/milestone1[${flag}${index}]/content4" ><x:out select="$milestone1/content4"/></span>
			</td>
			<td align="center">
				<span label="其中 (平方米)-->服务用" name="milestones/milestone1[${flag}${index}]/content5" ><x:out select="$milestone1/content5"/></span>
			</td>
			<td align="center">
				<span label="其中 (平方米)-->办公用" name="milestones/milestone1[${flag}${index}]/content6" ><x:out select="$milestone1/content6"/></span>
			</td>
			<td align="center">
				<span label="其中 (平方米)-->其它" name="milestones/milestone1[${flag}${index}]/content7" ><x:out select="$milestone1/content7"/></span>
			</td>
			<td align="center">
				<span label="产权情况（平方米）-->自由产权" name="milestones/milestone1[${flag}${index}]/content8" ><x:out select="$milestone1/content8"/></span>
			</td>
			<td align="center">
				<span label="产权情况（平方米）-->受托管理" name="milestones/milestone1[${flag}${index}]/content9" ><x:out select="$milestone1/content9"/></span>
			</td>
			<td align="center">
				<span  label="产权情况（平方米）-->租赁" name="milestones/milestone1[${flag}${index}]/content10" ><x:out select="$milestone1/content10"/></span>
			</td>
			<td align="center">
				<span  label="产权情况（平方米）-->其它" name="milestones/milestone1[${flag}${index}]/content11" ><x:out select="$milestone1/content11"/></span>
			</td>
		</tr>

		<c:set value="${index+1}" var="index" scope="page"/>
		</x:forEach>
	</tbody>
	 <tr id="tr_heji">
		<th class="TblHead" align="center"  colspan="2">合计</th>
		<th class="TblHead" align="center"  >/</th>
		<th class="TblHead" align="center"  >/</th> 
		<th class="TblHead" align="center"  >/</th> 
		<th class="TblHead" align="center"  ><span id="total_a" name="milestones/total_a"><x:out select="$xmlData/data/milestones/total_a"/></span></th>
		<th class="TblHead" align="center"  ><span id="total_b" name="milestones/total_b"><x:out select="$xmlData/data/milestones/total_b"/></span></th>
		<th class="TblHead" align="center"  ><span id="total_c" name="milestones/total_c"><x:out select="$xmlData/data/milestones/total_c"/></span></th>
		<th class="TblHead" align="center"  ><span id="total_d" name="milestones/total_d"><x:out select="$xmlData/data/milestones/total_d"/></span></th>
		<th class="TblHead" align="center"  ><span id="total_e" name="milestones/total_e"><x:out select="$xmlData/data/milestones/total_e"/></span></th>
		<th class="TblHead" align="center"  ><span id="total_f" name="milestones/total_f"><x:out select="$xmlData/data/milestones/total_f"/></span></th>
		<th class="TblHead" align="center"  ><span id="total_g" name="milestones/total_g"><x:out select="$xmlData/data/milestones/total_g"/></span></th> 
		<th class="TblHead" align="center"  ><span id="total_h" name="milestones/total_h"><x:out select="$xmlData/data/milestones/total_h"/></span></th>
		<th class="TblHead" align="center"  ><span id="total_i" name="milestones/total_i"><x:out select="$xmlData/data/milestones/total_i"/></span></th>
		</tr>

</table>
<br/>

	<table width="98%" align="center"  border="0" cellpadding="0" cellspacing="1">
					<tr >
					<input class="button" type="button" name="cmdAddbefore" value="添加" onclick="if(checkTabLimit('tblAttendOrg',99,'科技企业孵化器现有孵化场地情况表最多只能填写99条')){addNewRow('tblAttendOrg','${ctx}/proposal/edit/dialog/orgInfoEdit_fhqrd?parentTab=tblAttendOrg&type=add&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','科技企业孵化器现有孵化场地情况表');}try{top.resizeFrame();}catch(e){};">
				&nbsp;<input class="button"   name="cmdMovePrev" type="button" value="上移" onclick="movePrev2('tblAttendOrg');">
				&nbsp;<input class="button"   name="cmdMoveNext"  type="button" value="下移" onclick="moveNext2('tblAttendOrg');">
				&nbsp;<input class="button"  id="cmdEdit" type="button" value="编辑" onclick="editRow('tblAttendOrg','${ctx}/proposal/edit/dialog/orgInfoEdit_fhqrd?parentTab=tblAttendOrg&type=edit&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','科技企业孵化器现有孵化场地情况表')">
				&nbsp;<input class="button"  name="cmddel" type="button" value="删除" onclick="deleteSelectedRow2('tblAttendOrg','科技企业孵化器现有孵化场地情况表');countTableSpan('tblAttendOrg','total_a','5');countTableSpan('tblAttendOrg','total_b','6');countTableSpan('tblAttendOrg','total_c','7');countTableSpan('tblAttendOrg','total_d','8');countTableSpan('tblAttendOrg','total_e','9');countTableSpan('tblAttendOrg','total_f','10');countTableSpan('tblAttendOrg','total_g','11');countTableSpan('tblAttendOrg','total_h','12');countTableSpan('tblAttendOrg','total_i','13');"></td>
	</tr>
	</table>



	<br/>
<script type="text/javascript">
function countTableSpan(tblId,objid,col){
	   var count = 0;
	   $("#"+tblId+" tr[id!='tr_heji']:gt(2)").each(function() {
		   var fund = $(this).children().eq(col).children().html();
		   if (!$.isNumeric(fund))
				fund = "0";
			count = ((parseFloat(count)*10000 + parseFloat(fund)*10000)/10000).toFixed(4);
 });
	   count = formatNumberAuto(count.toString(), 9, 4, 2);// 格式化金额
	   $("#" + objid).html(count);
	   
}

$(function() {
	$("#tblMileStones tr:even").addClass("li_1");
	$("#tblMileStones tr:odd").addClass("li_2");
});
$(function() {
	$("#tblMileStones1 tr:even").addClass("li_1");
	$("#tblMileStones1 tr:odd").addClass("li_2");
});
function initTreeValue2(treeId, treeNode) {
  	//针对单位性质
  	if (( treeNode && treeNode.isParent)) {
		scmWarn("请选择具体的"+$("#" + treeId).attr("label"));
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_code'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_value'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_name'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_name']").val("");
			return false;
	}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			//str = obj.name + "-" + str;
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" +  treeId.substr(0,treeId.lastIndexOf("_")) + "_code'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" +  treeId.substr(0,treeId.lastIndexOf("_")) + "_value'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" +  treeId.substr(0,treeId.lastIndexOf("_")) + "_name'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_name']").val(str);
		$("#" + treeId).val(str);
		initTreeValue2CallBack();
	}



/**
 * 删除一行
 * @param radioId 
 */
function deleteSelectedRow2(tableId,message,nummin,warnMsg,selName){
	if(!selName)selName="";
	var tr=$("#"+tableId+" :radio[name*='"+selName+"']:checked").parents("tr");
	if(nummin==null)
		nummin=0;
	var length=tr.length;
	if(tr.length==0)
		tr=$("#"+tableId+" tr").filter(":last");
	else if(tr.length>1)
		tr=tr.first();

	if(tr.get(0).rowIndex-1==nummin){
		scmWarn(irisNotes.delWarn1);
		return false;
	}
	if(length==0){
		
			scmWarn(irisNotes.delWarn2);
		
		return false;
	}
	  if(!confirm(messageTip.deleteTip+message+"？"))
		  return false;
	  tr.remove();
	  refreshRowINdex2(tableId);
	  return true;
}

/**
 * 上移行
 * @param tblId
 * @returns {Boolean}
 */
function movePrev2(tblId,selName) {

	if (!selName)
		selName = "";
	if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
		scmWarn(irisNotes.prevWarn);
		return false;
	}
	if ($("#" + tblId + " tr").length <= 3)
		return false;
	var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
			.parents("tr").first();// 取得被选中的行
	var trPrev = trChecked.prev();// 取得上一行
	var index = trChecked.get(0).rowIndex;// 获得行号
	if (index <= 3) {// 如果是第一行
		scmWarn(irisNotes.tabelMoveWarn1);
		return false;
	}
	//trChecked.remove();
	trPrev.before(trChecked);
	trChecked.find(":radio[name*='" + selName + "']").attr("checked", 'true');
	refreshRowINdex2(tblId);
}

/**
 * 下移行
 * @param tblId
 * @returns {Boolean}
 */
function moveNext2(tblId,selName) {
	if (!selName)
		selName = "";
	if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
		scmWarn(irisNotes.nextWarn);
		return false;
	}
	if ($("#" + tblId + " tr").length <= 3) {
		return false;
	}
	var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
			.parents("tr").first();// 取得被选中的行
	var trNext = trChecked.next();
	var index = trChecked.get(0).rowIndex;// 获得行号
	if (index == $("#" + tblId + " tr").length - 2) {// 如果是第一行
		scmWarn(irisNotes.tabelMoveWarn2);
		return false;
	}
	//trChecked.remove();
	trNext.after(trChecked);
	trChecked.find(":radio[name*='" + selName + "']").attr("checked", "true");
	refreshRowINdex2(tblId);
}

/**
 * 重新计算行号
 * @param tblId
 */
function refreshRowINdex2(tblId){
	 //重新计算行号

	
	  $("#"+tblId+" tr").each(function(){
		  
		   var seq=$(this).get(0).rowIndex;//获得行数
		   if(seq>2){//如果有行  显示时display行不计入类，故减2
			   
			   seq=seq-2;
			   var seq_no=$(this).find("[name$='seq_no']");
			   if(seq_no.is("span"))
				   seq_no.html(seq);
			   else
				   seq_no.val(seq);
			   
			   seq=""+(seq-1);
			   if(seq.length==1)
				   seq="0"+seq;
			  //替换相应的name参数的seq
			  $(this).find("input,span,textarea,select").each(function(){
				   var name=$(this).attr("name");
				   if(name!=null&&name!=""){
					   name=name.replace(/\[\d*\]/g,"["+seq+"]");
					   $(this).attr("name",name);
				   }
				   var id=$(this).attr("id");
				   if(id!=null&&id!=""){
					   id=id.replace(/\[\d*\]/g,"["+seq+"]");
					   $(this).attr("id",id);
					   id=id.replace(/\d+/g,""+seq+"");
					   $(this).attr("id",id);
				   }
				   var className=$(this).attr("class");
				   if(className!=null&&className!=""){
					   className=className.replace(/\[\d*\]/g,"["+seq+"]");
					   $(this).attr("class",className);
				   }
			   });
		   }
		 }
	  );

}



</script>